from api import log
from config import HOST


class ApiTender:
    def __init__(self,session):
        self.session=session
        self.__url_tender=HOST+"/trust/trust/tender"

    #后台投资接口 封装
    def api_tender(self,amount):
        data={
            "id":"642",
            "depositCertificate":"-1",
            "amount":amount
        }
        log.info("正在调用后台投资接口")
        return self.session.post(url=self.__url_tender,data=data)
